@echo off
echo 正在激活conda环境...
call conda activate cosyvoice
cd %~dp0
set PYTHONPATH=%PYTHONPATH%;%~dp0
echo Python路径已设置为: %PYTHONPATH%
echo 正在检查Python版本...
python --version
echo 正在安装必要依赖...
pip install -e .
pip install librosa gradio torch torchaudio numpy
echo 正在启动CosyVoice...
python webui.py --port 50000 --model_dir pretrained_models/CosyVoice-300M-SFT
pause 